﻿@model IEnumerable<RonYee.Models.News>         

@{
    ViewBag.Title = "Ronge_首页";
    Layout = "~/Views/Shared/_LayoutSecondPage.cshtml";
}

   
<!-- START SLIDER -->
<div id="slider" class="group inner">
    <ul class="group">
        @foreach (var item in (IEnumerable<RonYee.Models.ImgNews>)ViewData["baseImgnews"])
        { 
        <li class="first slide-1 group image-content-type">
            <div class="slider-featured group"><a href="@item.NewsUrl"><img src="@Url.Content(item.ImgUrl)" width="960" height="338" alt="interior design" /></a></div>
            <div class="slider-caption caption-right">
                <!-- TITLE -->
                <h2><a href="@item.NewsUrl">@item.ImgTitle</a></h2>
                <!-- TEXT -->
                <p>
                    @{
                        var brief = string.Empty;
                        if (item.Brief.Length > 20)
                        {
                            brief = string.Concat(item.Brief.Substring(0, 20), "...");
                        }
                        else
                        {
                            brief = item.Brief;
                        }
                    } 
                    @brief
                </p>
                <p><a href="@item.NewsUrl"><span class="special-font" style="font-size:24px;">Read More</span></a></p>
            </div>
        </li>
        }
           
    </ul>
</div>
<!-- END SLIDER -->            
<div class="slider-mobile">
    <script type="text/javascript">
        var yiw_slider_type = 'elegant',
            yiw_slider_elegant_easing = null,
        	yiw_slider_elegant_fx = 'fade',
        	yiw_slider_elegant_speed = 1000,
        	yiw_slider_elegant_timeout = 10000,
        	yiw_slider_elegant_caption_speed = 500;
    </script>
     
</div>
<!-- START PRIMARY SECTION -->
<div id="primary" class="inner group">
    <div id="slogan" class="inner">
        <h1>欢迎来到融益书屋二手书商城,我们团队竭诚为您服务！</h1>
        <h3>融通智慧——创造公益, 顾客至上——服务至诚</h3>
    </div>
    <div class="layout-sidebar-no">
            <!-- START CONTENT -->
            <div id="content" role="main" class="group wrapper-content">
                <div id="post-7" class="post-7 page type-page status-publish hentry group">
                    <div class="call-to-action-two group">
                        <div class="incipit">
                            <p class="special-font">
                                <span style="font-size:52px;"><strong>40% </strong></span> <span style="font-size:48px;">off every book</span>  Sign in to our list before march 21 to enjoy our special sales!<br />
                            </p>
                        </div>
                        <a href="@Url.Action("Index","Store")" class="call-button">
                        SIGN IN NOW		
                        </a>
                    </div>
                </div>
            </div>
            <!-- END CONTENT -->
        </div>
</div>
<!-- END PRIMARY SECTION -->


<!-- START FOOTER -->
<div id="footer" class="group footer-sidebar-right columns-3">
    <div class="inner">
        <div class="footer-main">
            <div id="nav_menu-3" class="widget-1 widget-first widget widget_nav_menu">
                <h3>新闻公告</h3>
                <div class="menu-categories-footer-container">
                    <ul id="menu-categories-footer" class="menu">
                    @foreach (var item in (IEnumerable<RonYee.Models.News>)ViewData["baseNews"])
                        { 
                        <li>
                            <a href="@Url.Action("Details", "News", new { id = item.NewsId })" >
                    
                            @{
                                var title = string.Empty;
                                if(item.NewsTitle.Length>36)
                                {
                                    title = string.Concat(item.NewsTitle.Substring(0, 36), "...");
                                }
                                else
                                {
                                    title = item.NewsTitle;
                                }
                            } 
                            @title
                            </a>
                            <span class="date">
                            [ @item.AddTime.ToShortDateString() ]
                            </span>
                        </li>
                        }
                        <li><a href="@Url.Action("List","News")">--More News>></a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="footer-sidebar">
            <div id="recent-posts-3" class="widget-1 widget-first widget recent-posts">
                <h3>Download Ronge</h3>
                <div class="recent-post group">
                   @foreach (var item in (IEnumerable<RonYee.Models.File>)ViewData["baseFile"])
                   {
                    <div class="hentry-post group">
                        <a href="@Url.Action("Download", "Files", new { id = item.FileId })" title="@item.FileName" class="title">@item.FileName</a>
                        <p>@item.AddTime.ToShortDateString()</p>
                    </div>
                   }
                   <a href="@Url.Action("List","Files")">--More Doc>></a>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- END FOOTER -->

